// TitleDlg.cpp : implementation file
//

#include "stdafx.h"
#include "PrintTest.h"
#include "TitleDlg.h"
#include "afxdialogex.h"


// CTitleDlg dialog

IMPLEMENT_DYNAMIC(CTitleDlg, CDialogEx)

CTitleDlg::CTitleDlg(CWnd* pParent /*=NULL*/)
	: CDialogEx(CTitleDlg::IDD, pParent)
	, m_strTitle(_T(""))
{

}

CTitleDlg::~CTitleDlg()
{
}

void CTitleDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_strTitle);
}


BEGIN_MESSAGE_MAP(CTitleDlg, CDialogEx)
	ON_BN_CLICKED(IDOK, &CTitleDlg::OnBnClickedOk)
END_MESSAGE_MAP()


// CTitleDlg message handlers


void CTitleDlg::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	UpdateData( TRUE );
	CDialogEx::OnOK();
}


BOOL CTitleDlg::OnInitDialog()
{
	CDialogEx::OnInitDialog();

	// TODO:  Add extra initialization here
	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
